3.3.9 \(\int \frac {\csc (e+f x)}{\sqrt {a+b \sin (e+f x)}} \, dx\) [209]

Optimal. Leaf size=63 \[ \frac {2 \Pi \left (2;\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (e+f x)}{a+b}}}{f \sqrt {a+b \sin (e+f x)}} \]

[Out]

-2*(sin(1/2*e+1/4*Pi+1/2*f*x)^2)^(1/2)/sin(1/2*e+1/4*Pi+1/2*f*x)*EllipticPi(cos(1/2*e+1/4*Pi+1/2*f*x),2,2^(1/2
)*(b/(a+b))^(1/2))*((a+b*sin(f*x+e))/(a+b))^(1/2)/f/(a+b*sin(f*x+e))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.09, antiderivative size = 63, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {2886, 2884} \begin {gather*} \frac {2 \sqrt {\frac {a+b \sin (e+f x)}{a+b}} \Pi \left (2;\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{f \sqrt {a+b \sin (e+f x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Csc[e + f*x]/Sqrt[a + b*Sin[e + f*x]],x]

[Out]

(2*EllipticPi[2, (e - Pi/2 + f*x)/2, (2*b)/(a + b)]*Sqrt[(a + b*Sin[e + f*x])/(a + b)])/(f*Sqrt[a + b*Sin[e +
f*x]])

Rule 2884

Int[1/(((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])*Sqrt[(c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Simp
[(2/(f*(a + b)*Sqrt[c + d]))*EllipticPi[2*(b/(a + b)), (1/2)*(e - Pi/2 + f*x), 2*(d/(c + d))], x] /; FreeQ[{a,
 b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && GtQ[c + d, 0]

Rule 2886

Int[1/(((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])*Sqrt[(c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Dist
[Sqrt[(c + d*Sin[e + f*x])/(c + d)]/Sqrt[c + d*Sin[e + f*x]], Int[1/((a + b*Sin[e + f*x])*Sqrt[c/(c + d) + (d/
(c + d))*Sin[e + f*x]]), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && N
eQ[c^2 - d^2, 0] &&  !GtQ[c + d, 0]

Rubi steps

\begin {align*} \int \frac {\csc (e+f x)}{\sqrt {a+b \sin (e+f x)}} \, dx &=\frac {\sqrt {\frac {a+b \sin (e+f x)}{a+b}} \int \frac {\csc (e+f x)}{\sqrt {\frac {a}{a+b}+\frac {b \sin (e+f x)}{a+b}}} \, dx}{\sqrt {a+b \sin (e+f x)}}\\ &=\frac {2 \Pi \left (2;\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (e+f x)}{a+b}}}{f \sqrt {a+b \sin (e+f x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.06, size = 62, normalized size = 0.98 \begin {gather*} -\frac {2 \Pi \left (2;\frac {1}{4} (-2 e+\pi -2 f x)|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (e+f x)}{a+b}}}{f \sqrt {a+b \sin (e+f x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Csc[e + f*x]/Sqrt[a + b*Sin[e + f*x]],x]

[Out]

(-2*EllipticPi[2, (-2*e + Pi - 2*f*x)/4, (2*b)/(a + b)]*Sqrt[(a + b*Sin[e + f*x])/(a + b)])/(f*Sqrt[a + b*Sin[
e + f*x]])

________________________________________________________________________________________

Maple [A]
time = 2.22, size = 135, normalized size = 2.14

method result size
default \(-\frac {2 \left (a -b \right ) \sqrt {\frac {a +b \sin \left (f x +e \right )}{a -b}}\, \sqrt {-\frac {\left (\sin \left (f x +e \right )-1\right ) b}{a +b}}\, \sqrt {-\frac {\left (1+\sin \left (f x +e \right )\right ) b}{a -b}}\, \EllipticPi \left (\sqrt {\frac {a +b \sin \left (f x +e \right )}{a -b}}, \frac {a -b}{a}, \sqrt {\frac {a -b}{a +b}}\right )}{a \cos \left (f x +e \right ) \sqrt {a +b \sin \left (f x +e \right )}\, f}\) \(135\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(csc(f*x+e)/(a+b*sin(f*x+e))^(1/2),x,method=_RETURNVERBOSE)

[Out]

-2*(a-b)*((a+b*sin(f*x+e))/(a-b))^(1/2)*(-(sin(f*x+e)-1)*b/(a+b))^(1/2)*(-(1+sin(f*x+e))*b/(a-b))^(1/2)*Ellipt
icPi(((a+b*sin(f*x+e))/(a-b))^(1/2),(a-b)/a,((a-b)/(a+b))^(1/2))/a/cos(f*x+e)/(a+b*sin(f*x+e))^(1/2)/f

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(f*x+e)/(a+b*sin(f*x+e))^(1/2),x, algorithm="maxima")

[Out]

integrate(csc(f*x + e)/sqrt(b*sin(f*x + e) + a), x)

________________________________________________________________________________________

Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(f*x+e)/(a+b*sin(f*x+e))^(1/2),x, algorithm="fricas")

[Out]

Exception raised: TypeError >>  Error detected within library code:   failed of mode Union(SparseUnivariatePol
ynomial(SimpleAlgebraicExtension(InnerPrimeField(7),SparseUnivariatePolynomial(InnerPrimeField(7)),?^2+2)),fai
led) cannot

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\csc {\left (e + f x \right )}}{\sqrt {a + b \sin {\left (e + f x \right )}}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(f*x+e)/(a+b*sin(f*x+e))**(1/2),x)

[Out]

Integral(csc(e + f*x)/sqrt(a + b*sin(e + f*x)), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(f*x+e)/(a+b*sin(f*x+e))^(1/2),x, algorithm="giac")

[Out]

integrate(csc(f*x + e)/sqrt(b*sin(f*x + e) + a), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {1}{\sin \left (e+f\,x\right )\,\sqrt {a+b\,\sin \left (e+f\,x\right )}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(sin(e + f*x)*(a + b*sin(e + f*x))^(1/2)),x)

[Out]

int(1/(sin(e + f*x)*(a + b*sin(e + f*x))^(1/2)), x)

________________________________________________________________________________________